﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DBSystem.Entities;

namespace DBSystem.DataAccess
{
    public class CategoriaDAO:MasterDataAccess,ICategoriaDAO
    {
        public List<Categoria> GetAllFromCategoria()
        {
            var query = from c in Context.Categorias
                        orderby c.descripcion descending
                        select c;

            return query.ToList(); 

            //return Context.Categorias.OrderBy(c => c.descripcion).ToList();  
        }
    }
}
